Click or drag to resize
TableServer Class
This is the main Class in this framework, wich contain all the mecanism of network listening, setting of tangible table (read more about Framework design).
Inheritance Hierarchy
SystemObject
  TangibleFrameworkTableServer

Namespace: TangibleFramework
Assembly: ColocartsFramework (in ColocartsFramework.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public class TableServer

The TableServer type exposes the following members.

Constructors
  NameDescription
Private methodStatic memberTableServer
Public methodTableServer
Default Constructor, Wich will initialize all class members.
Top
Methods
  NameDescription
Public methodStatic memberCode exampleAutomatic_Network_Search
Static Public Function for Automatic Network Search for Slab Connected(Execution time 5 to 10 minutes and it's depend on network speed). this function return type is List of Ip address String.
Examples
Foreach(string s in TableServer.AutomaticNetworkSearch()) {Console.WriteLine(s); };
Public methodStatic membercalcul_Medium_point
public Function to calculate the medium point of list of points. the List of points objects. this function return type is Point Object Type.
Private methodConfigure_Slabs_Paratmers
Private Function for automatic setting by sending comands for each Slab on the tangible table (IP server, detection Mode... etc). this function return type is void.
Private methodConfigure_Slabs_Positions
Private Function for initializing Slabs positions on the tangible table. this function return type is void.
Private methodConfigure_Slabs_XML
private Function for reading Slabs Ip from XML file. this function return type is void .
Public methodDispose
public Function to Liberate All Resources and clean everything. this function return type is void.
Private methodStatic memberGet_Tag_Position
Private Function to get a position of tag from his ID Value. the string value Tag RFID Identificator. this function return type is tag Object Type.
Private methodinitilize_Class_Members
this function will inisialize all class members (buffers, objects, Network listeners ... etc). this function return type is void
Protected methodOn_Tags_Leaving
Virtual Function for Tags leaving (User must write his own function). the tag object that rise the event.the event rised by the sender. this function return type is void.
Protected methodOn_Tags_Moving
Virtual Function for Tags Moving (User must write his own function). the tag object that rise the event. the event rised by the sender. this function return type is void.
Private methodRun
private Function for performing the listening on Network Broadcast tangible frames. this function return type is void .
Public methodCode exampleSend_Command
Public Function to send a simple Tangible Command to a Single Slab. the string value of the Slab IP address.the string value of the Tangible Command. this function return type is Response Object Type.
Examples
TableServer tab= new TableServer(); tab.SendCommand("192.186.1.101","mode:1");
Public methodCode exampleStart
Public Function for Start Listening on Network for Broadcast tangible frames. this function return type is void.
Examples
TableServer tab=new tableServer(); tab.start();
Public methodCode exampleStop
Public Function for Stop Listening on Network for Broadcast tangible frames. this function return type is void.
Examples
TableServer tab=new tableServer(); tab.start(); tab.Stop()
Top
Fields
  NameDescription
Private fieldCommanding_Socket
Network Socket for network communication with the table .
Private fieldConnected_Slab_List
List of All Slabs IP address String.
Private fieldIp_Address
This Object represent a IP Address.
Public fieldStatic memberIP_Maximum
Maximum Address Ip for the automatic Network Search (default value 255).
Public fieldStatic memberIP_Minimum
Minimum Address Ip for the automatic Network Search (default value 100).
Public fieldStatic memberList_Tags_ID
List Of All Tags ID that will be concerned.
Public fieldStatic memberMain_Buffer
Byte Buffer for table command or Reply (1024 Byte default size).
Public fieldStatic memberMinimum_Rssi_Value
Minimum RSSSI Value for RSSI Detection Mode (default value is 0).
Public fieldStatic memberPort_Number
Network Port number for communication with the Tangible Table (65000 default value).
Public fieldStatic memberRSSI_Mode_Is_Activated
RSSSI Detection Mode Statut ( ON / OFF default).
Private fieldStatic memberServer_Is_Running
Listening Statut ( ON / OFF default).
Private fieldServer_Thread
This thread will be running for listening for network table tangible frames.
Public fieldStatic memberSlab_Sensors_Height
Slab RFID Sensor Height (default value 4).
Public fieldStatic memberSlab_Sensors_WIdth
Slab RFID Sensor Width (default value 4).
Public fieldStatic memberSlabPositions
a static Dictionary contain the Slab IP and her position inside the table.
Public fieldStatic memberSlabs_IP_File
XML File Path of Slabs IP List.
Public fieldStatic membertable
this static Object represent a table and inside it all tags and all slabs and their tags (needed for add/insert/delete tags).
Public fieldStatic memberTable_Sensors_height
Table RFID Sensor Height (default value 16).
Public fieldStatic memberTable_Sensors_WIdth
Table RFID Sensor Width (default value 16).
Public fieldStatic memberTime_Out
static Frames Time Out integer (default value 100 milliseconds).
Private fieldUDP_Listner
UDP Listener for reading all table frames Broadcast.
Top
Events
  NameDescription
Public eventTags_Leaving
Event Handler for Tags leaving the table.
Public eventTags_Updates
Event Handler for Tags moving on the table.
Top
See Also